home *** CD-ROM | disk | FTP | other *** search
/ Univers Mac Interactif 42 / Univers Mac Interactif - Issue 42.iso / >interactif / Démos Voyager / OLDTANDF.DIR / 00063_Script_63 < prev    next >
Text File  |  1994-11-01  |  782b  |  39 lines

  1.  
  2. on waitQT chan
  3.   if the movieRate of sprite chan = 1 then go to the frame
  4. end
  5. on waitSound chan
  6.   if  soundbusy(chan) = 1 then go to the frame
  7. end 
  8.  
  9. on myWait theTicks
  10.   set myTicks = theTicks + the ticks
  11.   repeat while (myTicks >= the ticks)
  12.   end repeat
  13. end
  14.  
  15. on switch
  16.   if the colordepth > 8 then 
  17.     put the castnum of sprite 1 into eightB
  18.     put the name of cast eightB into oldCast
  19.     put "16"&OldCast into newCast
  20.     set the castNum of sprite 1 to the number of cast newCast
  21.   end if
  22. end
  23.  
  24. on waiting theTicks
  25.   --must be preceded by startTimer
  26.   repeat while theTicks >= the timer 
  27.     updateStage
  28.   end repeat
  29. end
  30.  
  31. on KeyDown
  32.   global autoplaying
  33.   put 0 into autoplaying
  34.   sound stop 1
  35.   sound stop 2
  36.   unloadcast
  37.   play done
  38. end
  39.